package cn.edu.cug.cs.gtl.oi.ui.menu;

import javax.swing.*;
import java.awt.event.KeyEvent;

public class JMenuAnalysis extends JMenu {
    public JMenuAnalysis() {
        this.setText("分析(S)");
        this.setMnemonic(KeyEvent.VK_S);
        init();
    }

    void init() {
        JMenu MenuShearAnalysis = new JMenu("剪切分析");

        JMenuItem ItemBorderlineCut = new JMenuItem("边界线裁剪");
        MenuShearAnalysis.add(ItemBorderlineCut);
        MenuShearAnalysis.addSeparator();

        JMenuItem ItemFaceshearPoly = new JMenuItem("面剪多面/多体");
        MenuShearAnalysis.add(ItemFaceshearPoly);

        JMenuItem ItemCurveCut = new JMenuItem("曲面剪切");
        MenuShearAnalysis.add(ItemCurveCut);
        MenuShearAnalysis.addSeparator();

        JMenuItem ItemBodyCutFace = new JMenuItem("体剪面");
        MenuShearAnalysis.add(ItemBodyCutFace);

        JMenuItem ItemBodyCutBody = new JMenuItem("体剪体");
        MenuShearAnalysis.add(ItemBodyCutBody);

        JMenuItem Item = new JMenuItem("体布尔运算");
        MenuShearAnalysis.add(Item);

        this.add(MenuShearAnalysis);

        JMenuItem MenuFenceAnalysis = new JMenu("栅栏分析");

        JMenuItem ItemFenceCut = new JMenuItem("栅栏面剪切");
        MenuFenceAnalysis.add(ItemFenceCut);

        JMenuItem ItemAutoGenerateFence = new JMenuItem("自动生成栅栏面");
        MenuFenceAnalysis.add(ItemAutoGenerateFence);

        JMenuItem ItemAutoGenerateFenceAlsoCut = new JMenuItem("自动生成栅栏面并剪切");
        MenuFenceAnalysis.add(ItemAutoGenerateFenceAlsoCut);

        this.add(MenuFenceAnalysis);

        JMenuItem Menu3DCalculate = new JMenu("三维量算");

        JMenuItem ItemLengthCalc = new JMenuItem("长度量算");
        Menu3DCalculate.add(ItemLengthCalc);

        JMenuItem ItemAreaCalc = new JMenuItem("面积量算");
        Menu3DCalculate.add(ItemAreaCalc);

        JMenuItem ItemVolumeCalc = new JMenuItem("体积量算");
        Menu3DCalculate.add(ItemVolumeCalc);

        JMenuItem ItemCapacityCalc = new JMenuItem("容积量算");
        ItemCapacityCalc.setEnabled(false);
        Menu3DCalculate.add(ItemCapacityCalc);

        JMenuItem ItemCalcCenterOfGravity = new JMenuItem("计算重心");
        Menu3DCalculate.add(ItemCalcCenterOfGravity);

        JMenuItem ItemSlopeDirectionCale = new JMenuItem("坡度坡向量算");
        Menu3DCalculate.add(ItemSlopeDirectionCale);

        this.add(Menu3DCalculate);
        this.addSeparator();

        JMenuItem ItemGeologySection = new JMenuItem("地质切片");
        this.add(ItemGeologySection);

        JMenuItem ItemSelectLine = new JMenuItem("选中线生成垂向剖面");
        this.add(ItemSelectLine);

        JMenu ItemDynamicSection = new JMenu("动态切片");

        JMenuItem ItemDataPrepare = new JMenuItem("数据准备");
        ItemDynamicSection.add(ItemDataPrepare);

        JMenuItem ItemDynamicPlay = new JMenuItem("动态播放");
        ItemDynamicSection.add(ItemDynamicPlay);

        this.add(ItemDynamicSection);
        this.addSeparator();

        JMenuItem ItemExtractCore = new JMenuItem("提取岩芯");
        this.add(ItemExtractCore);

        JMenuItem ItemPITDig = new JMenuItem("基坑开挖");
        this.add(ItemPITDig);

        JMenu ItemDynamicDig = new JMenu("动态开挖");

        JMenuItem ItemDigDataPrepare = new JMenuItem("数据准备");
        ItemDynamicDig.add(ItemDigDataPrepare);

        JMenuItem ItemDigDynamicPlay = new JMenuItem("动态播放");
        ItemDynamicDig.add(ItemDigDynamicPlay);

        this.add(ItemDynamicDig);

        JMenuItem ItemGenerateDynamicDigRecord = new JMenuItem("生成动态开挖录像");
        this.add(ItemGenerateDynamicDigRecord);

        JMenuItem ItemRoadwayDynamicDrillSimulate = new JMenuItem("巷道动态掘进模拟");
        this.add(ItemRoadwayDynamicDrillSimulate);
        this.addSeparator();

        JMenuItem ItemFloodAnalysis = new JMenuItem("水淹分析");
        this.add(ItemFloodAnalysis);
    }
}
